package myJs.implicits

import scala.math.log10

/**
 * Created by Administrator on 2019/9/12
 */
trait MyDoubleTool {

  implicit class MyDouble(db: Double) {

    def toFixed(n: Int) = {
      db.formatted(s"%.${n}f")
    }

  }


}
